package org.iqiyi.feign;

import org.iqiyi.entity.UserEntity;
import org.iqiyi.feign.hystrix.UserServiceHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
@FeignClient(value = "iqiyiuser", fallback = UserServiceHystrix.class)
public interface UserServiceFeign {
    @PostMapping(value = "user/getUserName")
    UserEntity getUserName(@RequestParam(value = "userName") String userName);
}
